package com.lly.schedule.serice.impl;

import com.lly.schedule.dao.SysScheduleDao;
import com.lly.schedule.dao.impl.SysScheduleDaoImpl;
import com.lly.schedule.pojo.SysSchedule;
import com.lly.schedule.serice.SysScheduleService;

import java.util.List;
import java.util.Objects;

public class SysScheduleServiceImpl implements SysScheduleService {
    private SysScheduleDao scheduleDao =new SysScheduleDaoImpl();
    @Override
    public List<SysSchedule> findAll(int uid) throws Exception {

        return scheduleDao.findall();
    }

    @Override
    public int add(int uid) throws Exception {
         return scheduleDao.add(uid);
    }

    @Override
    public void update(SysSchedule sysSchedule) throws Exception {
        scheduleDao.update(sysSchedule);
    }

    @Override
    public void remove(int uid) throws Exception {
        scheduleDao.remove(uid);
    }
}
